<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../org/angular.min.js"></script>
    <script src="../org/jquery.min.js"></script>
    <script src="../org/angular-ui-router.min.js"></script>
</head>
<body>
    <div ui-view></div>
<script>
  //定义模块
  var vm = angular.module('hd',['ui-router']);

  vm.config(['$stateProvider','$urlRouterProvider',function($stateProvider,$urlRouterProvider){
       $urlRouterProvider.otherwise('');

       //定义路由规则
       $stateProvider.state('default',{
           url: '',
           template: '<h1>后盾人</h1>'
       });
  }])
</script>
</body>
</html>